package com.FSS.ui;

import java.awt.event.MouseEvent;

import javax.swing.JPopupMenu;
import javax.swing.JTable;

public class RightMouseKeyAdapter extends java.awt.event.MouseAdapter {
	private JTable table;
	JPopupMenu pM;

	public RightMouseKeyAdapter(JTable t, JPopupMenu p) {
		table = t;
		pM = p;
	}

	public void mouseClicked(MouseEvent e) {
		if (e.isMetaDown()){
			pM.show(table, e.getX(), e.getY());
		}
	}
}